#!/bin/bash
docker login https://harbor.lingyizhilian.com -u $1 -p $2
docker stop $(docker ps -a | grep "zerone-center" | awk '{print $1}')
docker rm $(docker ps -a | grep "zerone-center" | awk '{print $1}')
docker rmi $(docker images -a | grep "zerone-center" | awk '{print $1":"$2}')
docker run --restart=always  --privileged=true -v /etc/localtime:/etc/localtime  --name zerone-center-$3 -e spa="--spring.profiles.active=dev --nacosIp=192.168.0.131 --nacosPort=8848"   harbor.lingyizhilian.com/lab5/zerone-center:$3   &